﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public abstract class AbstractPlant
    {
        private string _name;
        private int _price;

        public AbstractPlant()
        {
        }

        public AbstractPlant(string name, int price)
        {
            _name = name;
            _price = price;
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public override string ToString()
        {
            return "название: "+ _name + ", цена: " + _price;
        }
    }
}
